package com.tree.backend.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 电力设备信息表
 * </p>
 *
 * @author tree
 * @since 2025-11-09
 */
@Getter
@Setter
@ToString
@TableName("power_equipment")
public class PowerEquipment implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 设备唯一标识ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 设备名称
     */
    private String equipmentName;

    /**
     * 设备编码
     */
    private String equipmentCode;

    /**
     * 所属区域ID
     */
    private Integer powerZoneId = 1;

    /**
     * 设备类型(变压器,开关柜,配电箱,电表)
     */
    private Integer equipmentType;

    /**
     * 设备位置
     */
    private String location;

    /**
     * 额定功率
     */
    private BigDecimal ratedPower;

    /**
     * 设备状态(正常,停用,检修)
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;
}
